const mongoose = require('mongoose')
mongoose.connect('mongodb://127.0.0.1:27017/Element-vue').then(() => {
    console.log('连接成功');
}).catch(() => {
    console.log('连接失败');
})

const field = mongoose.Schema({
    name: String,
    date2: String,
    type: [],
    resource: String,
})

const req = mongoose.model('req', field)
module.exports = req